home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gas_251.zip / bin_251 / bfd / hosts / pc532mach.h < prev    next >
C/C++ Source or Header  |  1994-07-14  |  835b  |  35 lines

  1. #include "hosts/std-host.h"
  2.  
  3. #include <machine/vmparam.h>
  4. #include <sys/param.h>
  5. #undef BYTE_SIZE        /* Was in bits. We define it later in bytes */
  6.  
  7. /* This is an ugly way to hack around the incorrect
  8.  * definition of UPAGES in ns532/machparam.h.
  9.  *
  10.  * The definition should specify the size reserved
  11.  * for "struct user" in core files in PAGES,
  12.  * but instead it gives it in 512-byte core-clicks
  13.  * for ns532, i386 and i860. UPAGES is used only in trad-core.c.
  14.  */
  15. #if UPAGES == 16
  16. #undef  UPAGES
  17. #define UPAGES 2
  18. #endif
  19.  
  20. #if UPAGES != 2
  21. #error UPAGES is neither 2 nor 16
  22. #endif
  23.  
  24. #define    HAVE_STRERROR
  25.  
  26. #define    HOST_PAGE_SIZE        1
  27. #define    HOST_SEGMENT_SIZE    NBPG
  28. #define    HOST_MACHINE_ARCH    bfd_arch_ns32k
  29. #define    HOST_TEXT_START_ADDR    USRTEXT
  30. #define    HOST_STACK_END_ADDR    USRSTACK
  31.  
  32. /* Not declared in errno.h on Mach3.  */
  33.  
  34. extern int errno;
  35.